﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminIndexMaster.master" AutoEventWireup="true" CodeFile="Admin_Group.aspx.cs" Inherits="Admin_Admin_Group" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table class="adminheading">
   <tr>
     <th valign="middle" class="menus" align="left">会员组管理</th>
     <td align="right">
     <div style="width:78px; text-align:center">
     <a href="Admin_GroupEdit.aspx?Action=AddGroup">新增会员组</a>     
     </div>
     </td>	

     <td class="rtdw"></td>
   </tr>                     
</table><asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="GroupID" 
      EnableViewState="true" CssClass="adminlist"   OnRowCommand="GridView1_RowCommand" >
         <Columns>
             <asp:BoundField DataField="GroupID" HeaderText="ID" InsertVisible="False" ReadOnly="true" HeaderStyle-Width="40px"/>                            
             <asp:BoundField DataField="GroupName" HeaderText="会员组" HeaderStyle-Width="200px"/>                            
             <asp:BoundField DataField="GroupIntro" HeaderText="会员组简介" /> 
             <asp:HyperLinkField DataNavigateUrlFields="GroupID" DataTextField="MemberNum" DataNavigateUrlFormatString="Admin_Passport.aspx?gid={0}" HeaderText="会员组人数" HeaderStyle-Width="100px" />
             <asp:TemplateField HeaderText="操作" ShowHeader="False" HeaderStyle-Width="80px">
                 <ItemTemplate >
                    <asp:HyperLink ID="md" NavigateUrl='<%# "Admin_GroupEdit.aspx?GroupID=" + Eval("GroupID") %>' runat="server" Text="修改" />
                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="com_del" CommandArgument='<%#Eval("GroupID") %>' OnClientClick="return confirm('确定要删除吗?');" Text="删除"></asp:LinkButton>
                 </ItemTemplate>
             </asp:TemplateField>
         </Columns>
         <RowStyle HorizontalAlign="Center" />
     </asp:GridView>
  
</asp:Content>